package com.wiseman.writing.utility.parsedata;

import java.io.InputStream;
import java.util.ArrayList;

public class Num2Char extends TxtParser{	

	ArrayList<String[]>mData = new ArrayList<String[]>();


	public Num2Char(String filename) {
		read(filename);
	}
	
	public Num2Char(InputStream in) {		
		read(in);
	}

	@Override
	void processLine(String line) {		
		String[] sub = line.split(":");		
		mData.add(sub);				
	}
	
	public ArrayList<String> getNums(){
		ArrayList<String> list = new ArrayList<String>();
		
		for(String []item:mData){
			list.add(item[0] );
		}
		
		return list;
	};
	
	public String getChars(int pos){		
		return mData.get(pos)[1];			
	};
	

}
